package window;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 * CardLabel - uses Composition
 * This class has a JLabel data member
 * 
 * @author 
 *
 */
class CardLabel {
	/**
	 * Data members
	 */
	private JLabel label;
	private ImageIcon alternateImage;

	public CardLabel(ImageIcon image1, ImageIcon image2) {
		label = new JLabel( image1 );
		alternateImage = image2;
	}

	public Icon getIcon() {
		return label.getIcon();
	}
}